enter code here
Hi, I'm trying to stylize a hierarchical unit and i noticed that the link are "automatically" added to the correct level!
Now, I've a link called Add wich is not coupled with any oids(its purpouse is to add a new element to first level) but compiling and running I've found out that the link are not displayed at all!!
I've just do a similar thing with the index unit with a code like this:
def addLink = unit.selectSingleNode("layout:Link[@name='Add']")
%]
<wr:frame>
<c:forEach var="current" varStatus="status" items="${<wr:UnitId/>.data}">
<c:set var="index" value="${status.index}"/>
<li>
<wr:Visible context="unitLink" position="'index'">
<a href='<wr:URL context="primaryLink"/>'>
<wr:Iterate var="attr" context="unit" select="layout:Attribute">
<wr:Value/>
</wr:Iterate>
</a>
</wr:Visible>
<wr:Iterate var="l" context="unit" select="layout:Link[position()>1 and @name!='Add']">
<wr:Link/>
</wr:Iterate>
</li>
</c:forEach>
</ul>
<a href='<wr:URL context="addLink"/>'>
add
</a>
</wr:frame>
In pratcice the idea is to fetch from the layout a link called Add and place it outside the structure! But I can't do this on the hierarchical, the link seems to be hidden or not accessible!
thanks for your help!